home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
home
/
takehome
/
hard.bat
next >
Wrap
DOS Batch File
|
1989-03-08
|
2KB
|
64 lines
ECHO OFF
ECHO *********************************
ECHO TakeHome Installation Program
ECHO *********************************
IF NOT "2DIR"=="%22DIR" GOTO STARTWORK
GOTO ERROREND
:STARTWORK
C:
CD\
IF EXIST PAY.BAT GOTO PAYTHERE
ECHO ECHO OFF >> PAY.BAT
ECHO %2: >> PAY.BAT
ECHO CD\PAYROLL >> PAY.BAT
ECHO TAKEHOME >> PAY.BAT
ECHO C: >> PAY.BAT
GOTO CONTINUE
:PAYTHERE
ECHO PAY.BAT ALREADY EXISTS - -
ECHO You will have to run TakeHome from its own directory
:CONTINUE
%2:
MD PAYROLL
CD\PAYROLL
IF EXIST TAKEHOME.EXE GOTO ERR2
COPY %1:TAKEHOME.EXE %2: > NUL
COPY %1:PAYCALCA.EXE %2: > NUL
COPY %1:TAKE2.000 %2: > NUL
IF EXIST %1:READ.ME COPY %1:READ.ME %2: > NUL
C:
cd\
ECHO **************************************************
ECHO * TakeHome has been successfully installed. *
ECHO * To run the program, type PAY (unless you have *
ECHO * a message above to run TakeHome from its own *
ECHO * directory). *
ECHO * *
ECHO * *
ECHO * Thanks for giving TakeHome a try and *
ECHO * remember to register if you plan to continue *
ECHO * To use TakeHome after your trial period. *
ECHO **************************************************
GOTO END
:ERR2
ECHO ??????????????????????????????????????????????????
ECHO ? TakeHome has already been installed on the ?
ECHO ? hard disk specified. If you want to reinstall ?
ECHO ? TakeHome to this hard disk, please delete the ?
ECHO ? files TAKEHOME.EXE, PAYCALCA.EXE, TAKE2.000 ?
ECHO ? and restart the installation batch file. ?
ECHO ??????????????????????????????????????????????????
GOTO END
:ERROREND
ECHO INSTALLATION NOTE
ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ECHO ! Enter the source drive and destination drive !
ECHO ! !
ECHO ! Example: HARD A C would read from A: and write to C: !
ECHO ! Example: HARD A D would read from A: and write to D: !
ECHO ! Example: HARD B C would read from B: and write to C: !
ECHO ! !
ECHO ! Please try again !
ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:END